package com.banmoon.visitor;

import com.banmoon.visitor.visitor.GradeOperation;
import com.banmoon.visitor.visitor.RiseOperation;
import com.banmoon.visitor.visitor.WeedOutOperation;

public class VisitorMain {

    public static void main(String[] args) {
        ObjectStructure objectStructure = new ObjectStructure();
        GradeOperation gradeOperation = new GradeOperation();
        WeedOutOperation weedOutOperation = new WeedOutOperation();
        RiseOperation riseOperation = new RiseOperation();

        objectStructure.accept(gradeOperation, 0);
        objectStructure.accept(gradeOperation, 1);
        objectStructure.accept(gradeOperation, 2);

        objectStructure.accept(weedOutOperation, 3);
        objectStructure.accept(riseOperation, 4);
    }
}
